package com.my12306.user.model.po;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * 第三方登录认证表
 *
 * @Author:苏牧夕
 * @Date:2020-05-15 17:36:13
 * @Version 1.0
 * @date 2020-05-15 17:18:43
 */
@TableName("p_third")
public class PThirdEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId
    private Long id;
    /**
     * 授权唯一id
     */
    private String openid;
    /**
     * 第三方类型
     */
    private String type;
    /**
     * 逻辑删除 0-表示删除，1-表示正常
     */
    private Integer logicDelete;
    /**
     * 创建时间
     */
    private Date createDate;
    /**
     * 修改时间
     */
    private Date updateDate;
    /**
     * 显示状态 0-表示禁用 1-表示正常
     */
    private Integer showStatus;
    /**
     * 版本号
     */
    private Integer version;

    public PThirdEntity() {
    }

    public PThirdEntity(Long id, String openid, String type, Integer logicDelete, Date createDate, Date updateDate, Integer showStatus, Integer version) {
        this.id = id;
        this.openid = openid;
        this.type = type;
        this.logicDelete = logicDelete;
        this.createDate = createDate;
        this.updateDate = updateDate;
        this.showStatus = showStatus;
        this.version = version;
    }

    @Override
    public String toString() {
        return "PThirdEntity{" +
                "id=" + id +
                ", openid='" + openid + '\'' +
                ", type='" + type + '\'' +
                ", logicDelete=" + logicDelete +
                ", createDate=" + createDate +
                ", updateDate=" + updateDate +
                ", showStatus=" + showStatus +
                ", version=" + version +
                '}';
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Integer getLogicDelete() {
        return logicDelete;
    }

    public void setLogicDelete(Integer logicDelete) {
        this.logicDelete = logicDelete;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public Integer getShowStatus() {
        return showStatus;
    }

    public void setShowStatus(Integer showStatus) {
        this.showStatus = showStatus;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }
}
